/* ==================== 技术产品页面样式 ==================== */

.tech-products-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -24px -24px 48px -24px;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tech-products-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.tech-products-hero .hero-content {
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.tech-products-hero .hero-title {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  line-height: 1.2;
}

.tech-products-hero .title-icon {
  font-size: 64px;
}

.tech-products-hero .hero-subtitle {
  font-size: 20px;
  opacity: 0.95;
  margin: 0 0 32px 0;
  line-height: 1.8;
}

.tech-products-hero .hero-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tech-products-hero .feature-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.tech-products-hero .feature-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* 技术产品区域 */
.tech-products-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.tech-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin: 40px 0;
}

.tech-product-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tech-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f172a, #3b82f6);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.tech-product-card:hover::before {
  transform: scaleX(1);
}

.tech-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  border-color: #3b82f6;
}

.tech-product-card.featured {
  border-color: #0f172a;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.tech-product-card .card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.tech-product-card .product-icon {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1;
}

.tech-product-card .product-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.tech-product-card .tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tech-product-card .tech-tag {
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.tech-product-card .product-description {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.tech-product-card .product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.tech-product-card .product-features li {
  font-size: 14px;
  color: #4b5563;
  line-height: 2;
  padding-left: 24px;
  position: relative;
}

.tech-product-card .product-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #0f172a;
  font-weight: bold;
  font-size: 16px;
}

.tech-product-card .card-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
}

.tech-product-card .tech-btn-wrapper {
  position: relative;
  flex: 1;
}

.tech-product-card .demo-btn,
.tech-product-card .source-btn {
  flex: 1;
  padding: 12px 20px;
  text-decoration: none !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
}

.tech-product-card .demo-btn {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
  border: none;
  cursor: pointer;
}

.tech-product-card .demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
}

.tech-product-card .source-btn {
  background: white;
  color: #0f172a !important;
  border: 2px solid #0f172a;
}

.tech-product-card .source-btn:hover {
  background: #0f172a;
  color: white !important;
}

.tech-product-card .qrcode-popup {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  min-width: 220px;
  text-align: center;
}

.tech-product-card .qrcode-popup::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

.tech-product-card .tech-btn-wrapper:hover .qrcode-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.tech-product-card .qrcode-popup img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.tech-product-card .qrcode-popup p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
}

/* 技术优势区域 */
.tech-advantages-section {
  max-width: 1400px;
  margin: 80px auto 0;
  padding: 0 24px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.advantage-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #3b82f6;
}

.advantage-card .advantage-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.advantage-card .advantage-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.advantage-card .advantage-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* 技术产品 CTA 区域 */
.tech-cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 80px 24px;
  margin: 80px -24px -24px -24px;
  text-align: center;
}

.tech-cta-section .cta-content {
  max-width: 1000px;
  margin: 0 auto;
}

.tech-cta-section .cta-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.tech-cta-section .cta-description {
  font-size: 18px;
  opacity: 0.9;
  margin: 0 0 48px 0;
  line-height: 1.6;
}

.tech-cta-section .cta-contact {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tech-cta-section .contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tech-cta-section .contact-icon {
  font-size: 32px;
}

.tech-cta-section .contact-info {
  text-align: left;
}

.tech-cta-section .contact-label {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.tech-cta-section .contact-value {
  font-size: 16px;
  font-weight: 600;
}

.tech-cta-section .cta-button {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--vp-c-brand-1), var(--vp-c-brand-2));
  color: white !important;
  text-decoration: none !important;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.tech-cta-section .cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .tech-products-hero {
    min-height: 50vh;
  }
  
  .tech-products-hero .hero-title {
    font-size: 36px;
  }
  
  .tech-products-hero .title-icon {
    font-size: 42px;
  }
  
  .tech-products-hero .hero-subtitle {
    font-size: 16px;
  }
  
  .tech-products-hero .feature-tag {
    font-size: 13px;
    padding: 8px 16px;
  }
  
  .tech-products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-cta-section .cta-contact {
    flex-direction: column;
    gap: 24px;
  }
  
  .tech-cta-section .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .tech-cta-section .contact-info {
    text-align: center;
  }
  
  .tech-product-card .card-footer {
    flex-direction: column;
  }
}

/* 暗色模式适配 */
.dark .tech-product-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #334155;
}

.dark .tech-product-card.featured {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.dark .tech-product-card .product-title {
  color: #f9fafb;
}

.dark .tech-product-card .product-description {
  color: #94a3b8;
}

.dark .tech-product-card .product-features li {
  color: #cbd5e1;
}

.dark .advantage-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #334155;
}

.dark .advantage-card .advantage-title {
  color: #f9fafb;
}

.dark .advantage-card .advantage-desc {
  color: #94a3b8;
}

.dark .tech-product-card .tech-tag {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.dark .tech-product-card .source-btn {
  background: transparent;
  color: white !important;
  border-color: white;
}

.dark .tech-product-card .source-btn:hover {
  background: white;
  color: #0f172a !important;
}

.dark .tech-product-card .qrcode-popup {
  background: #1e293b;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.dark .tech-product-card .qrcode-popup::after {
  border-top-color: #1e293b;
}

.dark .tech-product-card .qrcode-popup p {
  color: #cbd5e1;
}
